<template>
  <a-config-provider>
    <router-view />
  </a-config-provider>
</template>

<script setup>
import {onMounted, reactive} from 'vue'
import {ConfigProvider} from 'ant-design-vue'

onMounted(()=>document.dispatchEvent(new Event('prerender')))

const colorState = reactive({
  primaryColor: '#483CFF',
  errorColor: '#DA424F',
  warningColor: '#FA972D',
  successColor: '#60B13C',
})

ConfigProvider.config({
  theme: colorState,
})
</script>

<style lang="less">
</style>
